const DB = require('../../utils/db');
const { ipv6ToV4 } = require('../../utils/utlis');

module.exports = {
	messageDdd: async (email, content, ipv6, userId) => {
		// ipv6转ipv4
		let ip = ipv6ToV4(ipv6);
		await DB.query('insert into t_msg (email,content,ip,userId,ipv6) values(?,?,?,?,?)', [email, content, ip, userId, ipv6]);
	}
};
